package com.lunimei.utils;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;

public class MLog {
	private MLog() {
	}

	public static void d(String tag, Object message) {
		Logger.getLogger(tag).log(Level.DEBUG, message, null);
	}

	public static void d(String tag, Object message, Throwable t) {
		Logger.getLogger(tag).log(Level.DEBUG, message, t);
	}

	public static void i(String tag, Object message) {
		Logger.getLogger(tag).log(Level.INFO, message, null);
	}

	public static void i(String tag, Object message, Throwable t) {
		Logger.getLogger(tag).log(Level.INFO, message, t);
	}

	public static void w(String tag, Object message) {
		Logger.getLogger(tag).log(Level.WARN, message, null);
	}

	public static void w(String tag, Object message, Throwable t) {
		Logger.getLogger(tag).log(Level.WARN, message, t);
	}

	public static void e(String tag, Object message) {
		Logger.getLogger(tag).log(Level.ERROR, message, null);
	}

	public static void e(String tag, Object message, Throwable t) {
		Logger.getLogger(tag).log(Level.ERROR, message, t);
	}
}
